<?php
	//khoi dong session
	session_start();
	
	//kiem tra quyen truoc khi hien thi trang
	/*if(!session_is_registered("maquyen") || $_SESSION['maquyen']!="AD")
	{
	echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
	echo "<script language=javascript>window.location = 'loginUI.php';</script>"; 
	exit;
	}*/
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cập nhật quý</title>
<link rel="stylesheet" type="text/css" href="../css/style.css">
<script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="js/ajax.js"></script>
<script type="text/javascript" src="js/fill.js"></script>
<script type="text/javascript" src="js/quy.js"></script>
<script type="text/javascript" >
$(document).ready(function() 
{ 
	//document.frm_suanam.combonam.focus();
	//load combo nam
	//fillcombo2('get_list_nam.php',document.frm_suanam.combonam);
	fillcombo2('get_list_quy.php',document.frm_xoaquy.comboquy);
	
	//su kien change combo ma can bo
	
}); 
/*$(document).ready(function()
{ 	
	get_new_namhoc('../get_new_namhoc.php', document.frm_themnamhoc);
	fillcombo('../get_list_namhoc.php',document.frm_themhocki.cbo_tennamhoc);
	get_new_hocki('../get_new_hocki.php', document.frm_themhocki);
	get_con_namhoc('../get_con_namhoc.php', document.frm_themhocki);
	fillcombo('../get_list_namhoc.php',document.frm_chonhockihientai.cbo_tennamhoc);		
	get_cur_namhoc('../get_cur_namhoc.php',document.frm_chonhockihientai);
	_fillcombo('../get_list_hocki.php',document.frm_chonhockihientai.cbo_tennamhoc, document.frm_chonhockihientai.cbo_tenhocki);
	get_cur_hocki('../get_cur_hocki.php',document.frm_chonhockihientai);
	
	//su kien click button Them trong form them Nam hoc
	$('form[name="frm_themnamhoc"] input[type="button"]').click(function(){		
	themnamhoc('../themnamhoc.php', document.frm_themnamhoc);
	});
	
	//su kien click button Them trong form them Hoc ki
	$('form[name="frm_themhocki"] input[type="button"]').click(function(){		
	themhocki('../themhocki.php', document.frm_themhocki);			
	});
	
	//Su kien change value cua Combo chon nien khoa
	$('form[name="frm_chonhockihientai"] select[name="cbo_tennamhoc"]').change(function(){
	_fillcombo('../get_list_hocki.php',document.frm_chonhockihientai.cbo_tennamhoc, document.frm_chonhockihientai.cbo_tenhocki);
	});			
	
	//su kien nhan Chọn
	$('form[name="frm_chonhockihientai"] input[type="button"]').click(function(){		
		chonhockihientai("../chonhockihientai.php",document.frm_chonhockihientai);			
	});	
});
*/
</script>
</head>
<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" class="yui3-skin-sam">
  
<table width="778" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tbody>
  
  <!--Bắt đầu của HEADER-->
  <tr> 
    <td height="26" valign="top"> 
      <script>
	
	function thoat() {
		if (confirm('Ban co chac chan muon thoat khong ?' )) {
			document.location = '../logout.php';
			return;
		}
	}
</script>	 

<!--Thẻ hiển thị thông tin khi đăng nhập-->
<div style="Z-INDEX: 1; LEFT: 575px; WIDTH: 200px; POSITION: absolute; TOP: 53px; HEIGHT: 30px" align="center">
<font style="FONT-WEIGHT: 700; FONT-SIZE: 8pt; line-height:20px;" face="Tahoma" color="#FFFFFF">
<a class="white" href="javascript:thoat();">Thoát</a>
    <br>Xin chào, <?=$_SESSION['hoten']?>
    <br>
	(<?=$_SESSION['msad']?>)
    </font>
    </div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tbody><tr>
     <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tbody><tr>
         <td class="tl_header">&nbsp;</td>
         <td class="tc_header">&nbsp;</td>
         <td class="tr_header">&nbsp;</td>
       </tr>
       <tr>
         <td class="cl_header">&nbsp;</td>
         <td class="cm_header"><table width="100%" border="0" cellspacing="0" cellpadding="0">
           <tbody><tr>
             <td class="tittle_header">&nbsp;</td>
           </tr>
         </tbody></table></td>
         <td class="cr_header">&nbsp;</td>
       </tr>
       
     </tbody></table></td>
   </tr>
 </tbody></table>
    </td>
    
  </tr>
  <!--Kết thúc của HEADER-->
  <!--Bắt đàu của MAINPAGE-->
  <tr>
    <td valign="top">
    	     
        <table width="752px" align="center" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tbody>
        <!--MENU-->         
         <tr height="10">        
	   	<td align="center" colspan="3">
        <?php
		include_once('node-menunav-3ad.php');
		?> 
        </td>    
        </tr>
        <tr>
        <td align="center" >&nbsp;</td>
        <td align="center" >&nbsp;</td>
        <td align="center" >&nbsp;</td>
        </tr>        
        <!--KET THUC MENU-->
        <tr>
    <td height="100%" align="center" valign="middle">   
		 <table width="500" border="0" cellpadding="0" cellspacing="0">
        <tbody>
        <tr class="main_1">
          <td width="161" align="left"> <img height="25" src="../images/giaodienchung/tbl_left.gif" width="10" border="0"></td>
          <td width="419" align="center">Thêm quý</td>
          <td width="180" align="right"> <img height="25" src="../images/giaodienchung/tbl_right.gif" width="10" border="0"></td>
        </tr>
        <tr>
          <td colspan="3" align="left">
          	<form name="frm_themquy" id="frm_themquy">
            <table width="100%" class="border_1" bordercolor="#111111" cellspacing="0" cellpadding="0" align="center" border="0">             		
              <tbody>
              <tr>
              		<td height="22" class="level_1_2"></td>
                    <td class="level_1_2"></td>
              </tr>              
              <tr>
					<td height="22" align="right" class="level_1_1">Quý:</td>
					<td width="50%" align="left" class="level_1_1"><input name="txt_tenquy" class="txtbox" id="txt_tenquy" style="width:70%" value=""></td>
			  </tr>
              <tr>
              		<td colspan="2" height="22" align="center" class="level_1_2"><input name="btn_themquy" type="button" class="button_1" id="btn_themquy" value="Thêm"></td>
              </tr>
              </tbody>
           </table>
           </form>
          </td>
        </tr>		
        </tbody>
        </table>
		 <p>&nbsp;</p>
		 <table width="500" border="0" cellpadding="0" cellspacing="0">
		   <tbody>
		     <tr class="main_1">
		       <td width="161" align="left"><img height="25" src="../images/giaodienchung/tbl_left.gif" width="10" border="0"></td>
		       <td width="419" align="center">Xóa quý</td>
		       <td width="180" align="right"><img height="25" src="../images/giaodienchung/tbl_right.gif" width="10" border="0"></td>
		       </tr>
		     <tr>
		       <td colspan="3" align="left"><form name="frm_xoaquy" id="frm_xoaquy">
		         <table width="100%" class="border_1" bordercolor="#111111" cellspacing="0" cellpadding="0" align="center" border="0">
		           <tbody>
		             <tr>
		               <td height="22" class="level_1_2"></td>
		               <td class="level_1_2"></td>
		               </tr>
		             <tr>
		               <td height="22" align="right" class="level_1_1">Chọn quý:</td>
		               <td width="50%" align="left" class="level_1_1"><label for="comboquy"></label>
		                 <select name="comboquy" id="comboquy">
                         </select></td>
		               </tr>
		             <tr>
		               <td colspan="2" height="22" align="center" class="level_1_2"><input name="btn_xoaquy" type="button" class="button_1" id="btn_xoaquy" value="Xóa"></td>
		               </tr>
		             </tbody>
		           </table>
		         </form></td>
		       </tr>
		     </tbody>
		   </table>
<br>
		<br></td>
</tr>
</table>		
	</td>
  </tr>
  <!--Kết thúc của MAINPAGE-->
  <!--Bắt đàu của FOOTER-->
  <tr>
    <td valign="bottom">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tbody>
  <tr>
    <td class="cl_footer">&nbsp;</td>
    <td class="cm_footer"><div align="right" class="copy"><!--Copyright © 2008 by <a href="http://www.cuscsoft.com" target="_blank" class="white"><strong>CUSC</strong></a>--></div></td>
    <td class="cr_footer">&nbsp;</td>
  </tr>
  <tr>
    <td class="bl_footer">&nbsp;</td>
    <td class="bc_footer">&nbsp;</td>
    <td class="br_footer">&nbsp;</td>
  </tr>
</tbody></table>
</td>
  </tr>
  <!--Kết thúc của FOOTER-->
</tbody></table>
</body>
<script>
    //  Call the "use" method, passing in "node-menunav".  This will load the
    //  script and CSS for the MenuNav Node Plugin and all of the required
    //  dependencies.
    YUI().use('node-menunav', function(Y) {
        //  Retrieve the Node instance representing the root menu
        //  (<div id="productsandservices">) and call the "plug" method
        //  passing in a reference to the MenuNav Node Plugin.
        var menu = Y.one("#admin");
        menu.plug(Y.Plugin.NodeMenuNav);
        //  Show the menu now that it is ready
        menu.get("ownerDocument").get("documentElement").removeClass("yui3-loading");
    });
</script>
</html>
